package com.config.properties;

import com.config.YamlPropertySourceConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author: xufan
 **/
@PropertySource(value = {"classpath:application-login-free.yml"}, encoding = "utf-8", factory = YamlPropertySourceConfig.class)
@ConfigurationProperties(prefix = "array")
@Component
public class LoginFreeProperties {
    /**
     * 免登录接口路由数组
     */
    private String[] routes;

    public String[] getRoutes() {
        return routes;
    }

    public void setRoutes(String[] routes) {
        this.routes = routes;
    }
}
